package com.njsf.dao;

import com.njsf.pojo.Admin;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface AdminMapper {
    /*根据名字密码查询用户*/
    Admin findByNameAndPwd(String adminName, String pwd);

<<<<<<< HEAD
=======
    /*根据id查询用户*/
    Admin getOneAdmin(Integer id);

>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
    /*根据id修改登录时间*/
    int updateLastLoginTime(Integer id);

    /**查询管理员数据*/
    List<Admin> findAll();

    int deleteById(Integer id);
<<<<<<< HEAD
=======

    /*添加admin*/
    int addAdmin(Admin admin);

    /*修改管理员信息*/
    int updateAdmin(Admin admin);
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8
}
